package com.job.blossom;

/**
 * @author ZJM
 * @version 1.0
 * @since 2022-07-06 15:17:56
 */
public class Number0705 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 100; i <=999 ; i++) {
            int gewei = i%10;
            int shiwei = i/10%10;
            int baiwei = i/100%10;
            if(gewei<=4 & shiwei <=4 & baiwei <=4 & gewei>=1 & shiwei >=1 & baiwei >=1){
                if(gewei!=shiwei & gewei!=baiwei & shiwei!= baiwei){
                    System.out.println(i);
                    sum++;
                }
            }

        }
        System.out.println("一共组成："+sum+ "个不同的三位数");
    }
}
